#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "drawwidget.h"
#include<QLabel>
#include<QComboBox>
#include<QSpinBox>
#include<QToolBar>
#include<QToolButton>
#include<QGridLayout>
#include<QColorDialog>
#include "drawwidget.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public slots:
    void ChangbtnColor();
    void mySot(int index);

private:
    Ui::MainWindow *ui;
    DrawWidget *draw;
    QToolButton *toolbarColor;
    QToolButton *toolbtnClear;

    QLabel *lbLs;
    QComboBox *cb;

    QLabel *lbLw;
    QSpinBox *spinbox;
    QGridLayout *layout;

    void CreatToolBar();



};
#endif // MAINWINDOW_H
